package com.game.worm.mobile.view.discovery.group.adpater;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.dx.as.ui.adpater.RecyclerAdapter;
import com.game.worm.mobile.R;
import com.game.worm.mobile.view.discovery.group.ArticleBean;

/**
 * Created by d_xxiang on 2018/4/7.
 */

public class ArticleAdpater extends RecyclerAdapter<ArticleBean,ArticleAdpater.ViewHolder> {

    public ArticleAdpater(Context context) {
        super(context);
    }

    @Override
    public ArticleAdpater.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_discovery_group, parent, false);
        return new ArticleAdpater.ViewHolder(view);
    }

    @Override
    public void onBindViewHolder(ArticleAdpater.ViewHolder holder, int position) {

    }

    public static class ViewHolder extends RecyclerView.ViewHolder{

        public ViewHolder(View itemView) {
            super(itemView);
        }
    }


}
